<?php

namespace app\api\controller;

use app\admin\model\apply\Confg;
use app\common\controller\Api;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
        $this->success('请求成功');
    }

    /************************** 2023-6-28 lina 新增 start**********************************************************/
    /**
     * 获取底部配置
     * */
    public function getButtomConfig(){
        $row = Confg::field("bottom_data,product_num,member_num,login_num")->find(1);
        $this->success('请求成功',$row);
    }
    /************************** 2023-6-28 lina 新增 end**********************************************************/
}
